home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / graphics / vlapak1.zip / FPOLY256.ZIP / README < prev    next >
Text File  |  1992-01-27  |  1KB  |  31 lines

  1. This is a Y mode (320x200x256 colors, 4 pages) polygon and line blitter
  2. package.  Written by Dave Stampe (27/1/92).
  3.  
  4. This contains routines to set the mode, set view and drawing pages,
  5. draw and clip lines, and draw clipped and unclipped polygons.
  6. Most of the routines are self-explanatory.  The clipped routines
  7. can accept any numbers between -32767 and +32767, and clip to the
  8. bounding box specified by t_clip, l_clip etc...
  9.  
  10. The code is available for NON-COMMERCIAL use.  If you want to do anything
  11. commercial with it, please contact me once you finish development,
  12. c/o broehl@sunee.uwaterloo.edu
  13.  
  14. Notes on speed: Measured on a 486/25 with a (pretty slow) Paradise VGA card:
  15.  
  16. (small polys, typical of fine 3D)
  17. fastri() : 29,000 10x4 triangles/sec (no clippping)
  18. poly3()  : 19,000 clipped 10x4 triangles/sec
  19. vgaline() : 13,700 25-pixel vectors/sec
  20.  
  21. (larger 24x24 polys, typical of coarse 3D)
  22. fastri(): 3400 polys/sec
  23. poly3() : 3200 polys/sec
  24.  
  25. Note that poly4() has bugs when used with tiny polygons such as may be
  26. produced on the sides of 3D objects.
  27.  
  28. polyn() uses fastri() to draw n-sided polygons: not optimal, but it works.
  29. A proper N-sided trapezoidal decomposition would be 50% faster on small polys,
  30. but I haven't got around to it yet.
  31.